package com.liumingtai.demo01.email.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.liumingtai.demo01.email.utils.SendByEmailUtils;
import com.liumingtai.demo01.modules.email.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Service
public class EmailServiceImpl implements EmailService {
    @Autowired
    SendByEmailUtils sendByEmailUtils;

    @Override
    public String send(String sender, String receiver, String title, String text) {
        return sendByEmailUtils.send(sender, receiver, title, text);
    }
}
